package com.example.demo.service;
import com.example.demo.dto.PostDTO;

import java.util.List;
import java.util.Set;


public interface PostService {
    PostDTO getPostById(long id);
    List<PostDTO> getAll();
    Set<PostDTO> getPostByUserId(long userId);
    Set<PostDTO> getPostByTitle(String title);
    Long addNewPostByUserId(PostDTO postDTO,long userId);
    void deletePostById(long id);
    PostDTO updatePostByIdAndUserId(String title, String content, String publicationDate,long id,long userId,int likesCount,int commentsCount,int sharesCount,int favoritesCount);
}
